package com.quick.order.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.quick.common.bean.Payment;
import com.quick.common.service.IPaymentService;
import com.quick.order.mapper.PaymentMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements IPaymentService  {
    @Override
    public int addPayment(Payment payment) {
        super.save(payment);
        return payment.getId();
    }

    @Override
    public Payment getPaymentById(int id) {
        return super.getById(id);
    }
}
